<?php

use Illuminate\Routing\Router;

Admin::registerAuthRoutes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {
    $router->get('/', 'HomeController@index');
    $router->resource('chest','ChestController');
    $router->resource('grip','GripController');
    $router->resource('package','PackageController');
    $router->resource('agent','AgentController');
    $router->resource('user','UserController');
    $router->resource('company','CompanyController');
    $router->resource('gripType','GripTypeController');
    $router->resource('branches','BranchesController');
    $router->resource('chestType','ChestTypeController');
    $router->resource('fault','FaultController');
    $router->resource('order','OrderController');
    $router->resource('income','IncomeController');
    $router->resource('allot','AllotController');
    $router->resource('withdrawal','WithDraWalController');
    $router->resource('refund','ReFundController');
    $router->resource('useRecord', 'useRecordController');
    $router->resource('faultType', 'FaultTypeController');
    $router->resource('refundType', 'RefundTypeController');

});
